<include file="header" />
<div class="wraper" js="wapjs/meeting/js/meetingdetail">
	<div class="head clearfix">
		<if condition="$basicInfo.status eq 4">
			<a href="{BEESCRM::U('/meeting/meetingParticipants/inviteMeetingList',array('account_id'=>$accountId))}" class="iconfont icon-zuo"></a>
		<elseif condition="isset($is_leave) and ($is_leave eq 1 or $is_leave eq 0)" />
			<a href="{BEESCRM::U('/meeting/meetingParticipants/inviteMeetingList',array('account_id'=>$accountId))}" class="iconfont icon-zuo"></a>
		<else/>
			<a href="{BEESCRM::U('/meeting/meetingPersonal/index',array('account_id'=>$accountId, 'type' => $type))}" class="iconfont icon-zuo"></a>
		</if>
		<span class="head-name">会议详情</span>
	</div>
	<div class="lists tb-mode">
		<div class="room-img tb-cell">
			<if condition="$basicInfo.publicity_pic eq ''">
				<img src="/assets/meeting/images/meetingdefault.png"/>
			<else/>
				<img src="{BEESCRM:$basicInfo.publicity_pic}"/>
			</if>
		</div>
		<div class="text-block tb-cell">
			<p class="title">
				<if condition="$basicInfo.status eq 1 and $basicInfo.multilevel eq 0">【已申请】
				<elseif condition="$basicInfo.status eq 1 and $basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 0" />【已初审】
				<elseif condition="$basicInfo.status eq 2" />
					<if condition="$basicInfo.multilevel eq 2 and $basicInfo.pass eq 1">【审核通过】</if>
					<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 1">【审核通过】</if>
					<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 2">【审核不通过】</if>
					<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 0">【待复审】</if>

				<elseif condition="$basicInfo.status eq 3" />【审核不通过】
				<elseif condition="$basicInfo.status eq 4" />【已取消】
				<elseif condition="$basicInfo.status eq 5" />【已上传】
				<elseif condition="$basicInfo.status eq 10" />【草稿】
				</if>
			{BEESCRM:$basicInfo.title}...</p>
			<p class="text-gray"><span class="iconfont icon-shijian"></span>{BEESCRM:$basicInfo.start_time|date="Y-m-d",###}  {BEESCRM:$basicInfo.start_time|date="H:i",###}-{BEESCRM:$basicInfo.end_time|date="H:i",###}</p>
			<p class="text-gray"><span class="iconfont icon-ditu"></span>{BEESCRM:$basicInfo.address}{BEESCRM:$basicInfo.room_name}</p>
		</div>
	</div>

	<if condition="$basicInfo.status eq 3">
		<div class="lists">
			<p>审核状态：未通过</p>
			<p>不通过原因：{BEESCRM:$basicInfo.reason}</p>
		</div>
	</if>


	<div class="lists tb-mode">
		<div class="tb-cell">
			审核状态：
			<if condition="$basicInfo.status eq 1 and $basicInfo.pass eq 1 and $basicInfo.multilevel eq 1 and multilevel_pass eq 0" >
				【{BEESCRM:$basicInfo.department_name}已审核，待{BEESCRM:$basicInfo.wait_department}审核】
				<p>审核人办公电话：<a href="tel://{BEESCRM:$basicInfo.telephone}" class="text-green">{BEESCRM:$basicInfo.telephone}</a></p>

				<elseif condition="$basicInfo.status eq 1" />【已申请】
				<p>审核人办公电话：<a href="tel://{BEESCRM:$basicInfo.telephone}" class="text-green">{BEESCRM:$basicInfo.telephone}</a></p>
				<elseif condition="$basicInfo.status eq 2" />

				<if condition="$basicInfo.multilevel eq 2 and $basicInfo.pass eq 1">【审核通过】</if>
				<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 1">【审核通过】</if>
				<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 2">【审核不通过】</if>
				<if condition="$basicInfo.multilevel eq 1 and $basicInfo.multilevel_pass eq 0">【待复审】</if>

				<elseif condition="$basicInfo.status eq 3" />【审核不通过】
				<elseif condition="$basicInfo.status eq 4" />【已取消】
				<elseif condition="$basicInfo.status eq 5" />【已上传】
				<elseif condition="$basicInfo.status eq 10" />【草稿】
			</if>
		</div>
		<!--<if condition="$role['is_organizer'] eq 1">
			<div class="tb-cell">
				<a href="tel://{BEESCRM:$basicInfo.telephone}" class="text-green"><span class="iconfont icon-dianhua pull-right" style="font-size: 24px;"></span></a>
			</div>
		</if>-->
	</div>
	<if condition="$basicInfo['room_type'] neq 2">
	<div class="lists">主办单位：{BEESCRM:$basicInfo.department_name}</div>
	</if>
	<if condition="$role['is_auditor'] neq 0 or $role['is_organizer'] neq 0">
		<if condition="$basicInfo.fee eq 1">
		<div class="lists">会务费：¥ {BEESCRM:$basicInfo.cost}元</div>
		</if>
	</if>
	<div class="lists">会议联系人：{BEESCRM:$basicInfo.real_name}</div>
	<div class="lists">联系方式：{BEESCRM:$basicInfo.mobile}</div>

	<if condition="$basicInfo['room_type'] neq 2">
		<p class="blobk-title text-12">参会人员</p>
		<empty name="regUserList">
			<div class="lists text-12">
				暂无邀请参会人员
			</div>
		<else/>
			<div class="lists photo-box clearfix">
				<volist name="regUserList" id="vo">
					<div class="photo pull-left">
						<if condition="$vo.avatar neq ''">
							<img src="{BEESCRM:$vo.avatar}"/>
						<else />
							<img src="/assets/meeting/images/avatardefault.png"/>
						</if>
					</div>
				</volist>
				<a href="/meeting/MeetingPersonal/attendPeopleList/basic_id/{BEESCRM:$basic_id}/account_id/{BEESCRM:$accountId}" class="pull-right more">更多>></a>
			</div>
		</empty>
	</if>
	<p class="blobk-title text-12"><if condition="$basicInfo['room_type'] neq 2">会议内容</if><if condition="$basicInfo['room_type'] eq 2">活动内容</if></p>
	<div class="lists text-12">
		<empty name="basicInfo.content">
			尚未添加会议内容
		<else/>
			<p>{BEESCRM:$basicInfo.content}</p>
		</empty>

		<foreach name="$basicInfo['meetingPics']" item="vo">
			<img src="{BEESCRM:$vo}"/>
		</foreach>
	</div>

	<if condition="$basicInfo['room_type'] neq 2">
		<p class="blobk-title text-12">会议日程</p>
		<notempty name="scheduleList">
			<volist name="scheduleList" key="k" id="s">
				<if condition="!empty($s['start_time']) and !empty($s['end_time']) and !empty($s['content'])">
					<div class="lists agenda">
						<div class="agenda-list">
							<span class="numcircle bg-green">{BEESCRM:$k}</span>
							<div class="triangle">
								<span class="triangle-s"></span>
								<span class="triangle-b"></span>
							</div>

							<div class="agenda-contain">
								<p>{BEESCRM:$s.start_time|date="Y/m/d H:i",###}-{BEESCRM:$s.end_time|date="Y/m/d H:i",###}</p>
								<p>{BEESCRM:$s.content}</p>
							</div>
						</div>
					</div>
				<else />
					<p class="lists text-12">暂无会议日程</p>
				</if>
			</volist>

		<else/>
			<p class="lists text-12">暂无会议日程</p>
		</notempty>
	</if>

	<if condition="$basicInfo['room_type'] neq 2">
		<p class="blobk-title text-12">会议文件</p>
		<if condition="empty($meetingFiles)">
			<p class="lists">未上传文件</p>
		<else/>
			<div class="lists meetingfile clearfix">
				<volist name="meetingFiles" id="m">
				<div class="file tb-mode">
					<if condition="$m.ext eq 'doc' or $m.ext eq 'docx'">
						<p class="tb-cell"><span class="iconfont icon-word"></span></p>
					<elseif condition="$m.ext eq 'xls' or $m.ext eq 'xlsx'" />
						<p class="tb-cell"><span class="iconfont icon-excel"></span></p>
					<elseif condition="$m.ext eq 'ppt' or $m.ext eq 'pptx'" />
						<p class="tb-cell"><span class="iconfont icon-ppt"></span></p>
					<elseif condition="$m.ext eq 'jpg' or $m.ext eq 'jpeg' or $m.ext eq 'png' or $m.ext eq gif" />
						<p class="tb-cell"><img src="{BEESCRM:$m['url']}" style="width: 34px;height: 34px;margin-right: 6px"></p>
					</if>
					<div class="tb-cell text-gray">
						<p>{BEESCRM:$m.filename|substr=0,30}...</p>
						<p><span class="iconfont icon-download-copy"></span>{BEESCRM:$m.filesize}M <a href="{BEESCRM:$m.url}" class="text-gray viewonline">在线查看</a></p>
					</div>
				</div>
				</volist>
			</div>
		</if>
	</if>
	<!--审核通过的显示底部导航-->
	<if condition="$basicInfo.status neq '4'">
		<if condition="$check neq 1">
			<eq name="type" value="2">
				<div class="fixed-btn">
					<a href="javascript:void(0)" class="btn bg-green attend" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认参加</a>
					<!--<a href="javascript:void(0)" class="btn half-btn bg-red leave" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">在线请假</a>-->
				</div>
			</eq>
			<eq name="type" value="1">
				<div class="fixed-btn">
					<a href="/meeting/meetingPersonal/jumpurl/basic_id/{BEESCRM:$basic_id}/user_id/{BEESCRM:$user_id}/account_id/{BEESCRM:$accountId}" class="btn half-btn bg-green">参会二维码</a>
					<a href="javascript:void(0)" class="btn half-btn bg-grey">已确认</a>
				</div>
			</eq>
		</if>
		<if condition="isset($is_leave) and $is_leave eq 1">
			<div class="fixed-btn">
				<a href="javascript:void(0)" class="btn bg-grey" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认参加</a>
				<!--<a href="javascript:void(0)" class="btn half-btn bg-grey" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认参加</a>-->
				<!--<a href="javascript:void(0)" class="btn half-btn bg-red" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">已请假</a>-->
			</div>
		<elseif condition="isset($is_leave) and $is_leave eq 0"/>
			<div class="fixed-btn">
				<a href="javascript:void(0)" class="btn bg-green attend" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认参加</a>
				<!--<a href="javascript:void(0)" class="btn half-btn bg-green attend" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认参加</a>-->
				<!--<a href="javascript:void(0)" class="btn half-btn bg-red leave" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">在线请假</a>-->
			</div>
		</if>
	</if>
</div>
<div class="layer-wraper">
	<div class="main">
		<p class="title">请假原因</p>
		<textarea placeholder="请填写请假原因~" id="leave_reason" name="leave_reason"></textarea>
		<div class="pop-btn">
			<a href="javascript:void(0);" class="btn cancel">取消</a>
			<a href="javascript:void(0);" class="btn green-btn" id="leave_confirm" data-user_id="{BEESCRM:$user_id}" data-basic_id="{BEESCRM:$basic_id}" data-account_id="{BEESCRM:$accountId}">确认</a>
		</div>
	</div>
</div>
<script type="text/javascript" src="/assets/public/seajs/sea.js"></script>
<script enter="publicjs/public" id="confnode" async="async" src="/assets/public/config.js"></script>
<include file="footer" />